import Taro, { Component } from '@tarojs/taro'
import { View, Image, Text } from '@tarojs/components'
import { AtButton, } from 'taro-ui'
import { DNavBar } from '@/components'
import http from '@/api'
import './index.scss'

export default class AuditInfo extends Component {
    state = {
        title: '企业认证',
        timeIcon: require('@/assets/images/time@2x.png')
    }

    componentDidMount() {
        const { title } = this.$router.params
        if (title) {
            this.setState({
                title
            })
        }
    }

    render() {
        const { title } = this.state
        return (
            <View className="b-auditinfo">
                <DNavBar title={title}></DNavBar>

                <View className="container">
                    <View className="top">
                        <Image src={this.state.timeIcon} className="img"></Image>
                        <Text className="bold-text">您的申请待审核</Text>
                        <Text className="text">您的申请已提交，企业管理员将尽快为您审批，请耐心等待~</Text>
                    </View>

                    <AtButton className="know_btn" onClick={() => {
                        Taro.navigateBack()
                    }}>我知道了</AtButton>
                </View>
            </View>
        )
    }
}
